//
//  MemberListFooterView.m
//  YunDongGym
//
//  Created by lqq on 2018/5/21.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import "MemberListFooterView.h"

@implementation MemberListFooterView

+ (instancetype)viewForMemberCount:(NSInteger)memberCount
{
    MemberListFooterView *footerView = [[MemberListFooterView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 60)];
    UILabel *countLabel = [[UILabel alloc] init];
    countLabel.font = RegularFont(14);
    countLabel.textColor = HEXColor(@"#9B9B9B");
    countLabel.text = [NSString stringWithFormat:@"%ld位会员",(long)memberCount];
    [footerView addSubview:countLabel];
    [countLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.centerY.equalTo(footerView);
    }];
    return footerView;
}
@end
